

import 'package:json_annotation/json_annotation.dart';

part 'live_model.g.dart';

@JsonSerializable()
class LiveModel {
  String title;

  String? livePath;

  double categoryId;

  String teacherName;

  int sort;

  String startTime;

  String endTime;

  String liveDate;

  String? categoryName;

  bool? freeFlag;

  double? columnId;

  String? coverImg;

  String? teacherImg;
  String? id;

  int appointmentNum;
  LiveModel({
    required this.id,
    required this.title,
    required this.livePath,
    required this.categoryId,
    required this.teacherName,
    required this.sort,
    required this.startTime,
    required this.endTime,
    required this.liveDate,
    required this.categoryName,
    required this.freeFlag,
    required this.columnId,
    required this.coverImg,
    required this.teacherImg,
    required this.appointmentNum,
  });

  Map<String, dynamic> toJson() => _$LiveModelToJson(this);
  factory LiveModel.fromJson(Map<String, dynamic> json) => _$LiveModelFromJson(json);
}
